package visitorPattern.demo2;

/**
 * @author： pang-yun
 * @date： 2022-01-05 13:44
 * 功能目的 ：用于
 */

public class Client {
    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();

        objectStructure.add(new NodeA());
        objectStructure.add(new NodeB());

        VisitorA visitorA = new VisitorA();

        objectStructure.action(visitorA);
    }
}
